package com.dabai.iot.core.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;

/**
 * 设备基础信息
 *
 * @author kev1n
 */
@Data
public class DeviceBasicVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 产品Id
     */
    @Schema(description = "产品Id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long productId;

    /**
     * 产品Key
     */
    @Schema(description = "产品Key")
    private String productKey;

    /**
     * 自定义设备名称
     */
    @Schema(description = "自定义设备名称")
    private String deviceName;

    /**
     * 设备序列号
     */
    @Schema(description = "设备序列号")
    private String deviceSn;

    /**
     * 设备密钥
     */
    @Schema(description = "设备密钥")
    private String deviceSecret;

    /**
     * 设备描述
     */
    @Schema(description = "设备描述")
    private String deviceDesc;

}
